<template>
  <div>
    <div class="wrapper" v-show="isShow">
      <div class="tp">
        <div class="title">{{newsData.title}}</div>
        <div class="date">{{newsData.gmtCreate}}</div>
        <div class="description" v-html="newsData.content"></div>
        <!-- <div class="pic">
          <img src="~@/assets/images/demo/temp/banner2.jpg">
        </div> -->
      </div>

    </div>
  </div>
</template>

<script>
import { HomeSwiper } from '@/views/home/components'
import { summaryMixin } from '@/base/mixins/tableMix'
// import { mineApi } from '@/api'
export default {
  components: {
    HomeSwiper
  },
  mixins: [summaryMixin],
  async created() {
    this.newsData = JSON.parse(localStorage.getItem('newsDataTemp'))
    console.log('this.newsData', this.newsData)
    setTimeout(() => {
      this.isShow = true
    }, 300)
  },
  data() {
    return {
      active: 0,
      newsData: {},
      isShow: false
    }
  },
  methods: {
  },
  watch: {
  }
}
</script>

<style rel="stylesheet/scss" lang="scss" scoped>
@import "src/assets/css/mixin.scss";
@import 'src/assets/css/variables.scss';
.wrapper {
  font-size: 16px;
  background-color: #f0f0f0;
  min-height: 100vh;
  overflow: hidden;
  img{
    width: 100%;
  }
  .tp{
    padding: 10px;
    background-color: #fff;
    .title{
      font-size: 16px;
      color: #000;
    }
    .date{
      font-size: 14px;
      color: #999;
      border-bottom: 1px solid $color-border;
      line-height: 24px;
    }
    .description{
      margin: 10px 0;
      line-height: 20px;

    }
  }
}
</style>
